home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / sos3-2.lha / bin / sos-instcnt < prev    next >
Text File  |  1992-02-13  |  883b  |  30 lines

  1. #!/bin/sh
  2. # --------------------------------------------------------------------------
  3. # Copyright 1992 by Forschungszentrum Informatik (FZI)
  4. #
  5. # You can use and distribute this software under the terms of the licence
  6. # you should have received along with this program.
  7. # If not or if you want additional information, write to
  8. # Forschungszentrum Informatik, "STONE", Haid-und-Neu-Strasse 10-14,
  9. # D-7500 Karlsruhe 1, Germany.
  10. # --------------------------------------------------------------------------
  11. # 'sos-instcnt - 07:03:91 - Dietmar Theobald'
  12. #
  13. # sos-instcnt
  14. #
  15. # Installs the containers of the working version in the directory $SOSCONTAINER.
  16. # ('cp' denies copying a file onto itself.)
  17. #
  18. from="${SOSPATH-__SOS_INSTALLED_PATH__}/cnt"
  19.   to="${SOSCONTAINER?}"
  20.  
  21. cp -p $from/[0-9]* "$to"
  22.  
  23. cd $to
  24. for cnt in [0-9]*
  25. do
  26.    [ -f "$from/$cnt" ] || rm -f $cnt
  27. done
  28.  
  29. chmod u+w $to/[0-9]*
  30.